<div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                    <tr>
                        <th>昵称</th>
                        <th>手机号</th>
                        <th>性别</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="user_list">
                        #foreach ($item in ${bobo})
                        <tr>
                            <td> $item.nickname</td>
                            <td> $!{item.phoneNumber}</td>
                            <td>
                                #if ($item.gender==2) 女
                                #else 男
                                #end</td>
                            <td> $item.updatedTime</td>
                            <td> <a class="red" href="javascrip:void(0)" onclick= "removeFromIndex(${item.uid})" title="移除">
                                <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                </a></td>
                        </tr>
                        #end
                    </tbody>
                </table>
            </div>
            <!-- /.span -->
        </div>
    <!-- /.row -->
</div>
<script>
    function removeFromIndex(Id) {
        confirm('确认删除?', function () {
            $.ajax({
                type: "GET",
                url: './bobo/removeFromIndex',
                data: {uid: Id},
                success: function (data) {
                    if (data.resultCode == 0) {
                        succ('删除成功！');
                        delay(function () {
                            load(basePath+"/index/bobo");}, 1000);
                    } else {
                        error('删除失败！');
                    }
                },
                dataType: 'JSON'
            });
        });
    }
</script>